<html>
    <head>
        <title>会员列表</title>
        <link href="{$Think.const.ADMIN_CSS_URL}bootstrap.css" rel="stylesheet" />
        <link href="{$Think.const.ADMIN_CSS_URL}lz-style.css" rel="stylesheet" />
        <script src="{$Think.const.ADMIN_JS_URL}jquery.js"></script>
        <script src="{$Think.const.ADMIN_JS_URL}bootstrap.js"></script>
        <script src="{$Think.const.ADMIN_JS_URL}dataTables/jquery.dataTables.js"></script>
        <script src="{$Think.const.ADMIN_JS_URL}dataTables/dataTables.bootstrap.js"></script>
        <script src="{$Think.const.ADMIN_JS_URL}DatePicker/WdatePicker.js"></script>
        <script>
            $(document).ready(function () {
                $('#dataTables').dataTable({
                    paging: true,
                    searching: false,
                    showrownumber: true
                });
            });
        </script>
    </head>
    <body>
        <div class="container">
            <div class="row div_head" >
                <div class=" col-xs-6 col-sm-6 text-primary">
                    当前位置是：会员系统>会员设置>基本信息设置>会员列表
                </div>
                <div class=" col-xs-6 col-sm-3"></div>
                <div class=" col-xs-6 col-sm-3">
                    <a style="text-decoration: none;" href="__CONTROLLER__/add">【添加】</a>
                </div>
            </div>
            <hr />
            <div class="row div_form" >
                <form action="__SELF__" method="post">
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPLoginCode" class="control-label">{$Think.const.LB_VIPLOGINCODE}:</label></div>
                    <div class="col-xs-6 col-sm-3 div_text" >
                        <input type="text" id="VIPLoginCode" name="VIPLoginCode" class="form-control" placeholder="{$Think.const.LB_VIPLOGINCODE}"  value="" maxlength="20"/>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPName" class="control-label">{$Think.const.LB_VIPNAME}:</label></div>
                    <div class="col-xs-6 col-sm-3 div_text" >
                        <input type="text" id="VIPName" name="VIPName" class="form-control" placeholder="{$Think.const.LB_VIPNAME}"  value="" maxlength="42"/>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPNickName" class="control-label">{$Think.const.LB_VIPNICKNAME}:</label></div>
                    <div class="col-xs-6 col-sm-3 div_text" >
                        <input type="text" id="VIPNickName" name="VIPNickName" class="form-control" placeholder="{$Think.const.LB_VIPNICKNAME}"  value="" maxlength="42"/>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPPhoneNo" class="control-label">{$Think.const.LB_VIPPHONENO}:</label></div>
                    <div class="col-xs-6 col-sm-3 div_text" >
                        <input type="text" id="VIPPhoneNo" name="VIPPhoneNo" class="form-control" placeholder="{$Think.const.LB_VIPPHONENO}"  value="" maxlength="11"/>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="Sex" class="control-label">{$Think.const.LB_SEX}:</label></div>
                    <div class="col-xs-6 col-sm-3" >
                        <select id="Sex" name="Sex" class="form-control" >
                            <option value="" style="display: none"></option>
                            <foreach name="GV_Enum.Sex" item="row" key="k">
                                <option value="{$k}">{$k}-{$row}</option>
                            </foreach>
                        </select>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="BirthDay" class="control-label">{$Think.const.LB_BIRTHDAY}:</label></div>
                    <div class="col-xs-6 col-sm-3" >
                        <input type="text" id="BirthDay" name="BirthDay" class="form-control Wdate" placeholder="{$Think.const.LB_BIRTHDAY}" onClick="WdatePicker({el: this, isShowClear: false, readOnly: true, skin: 'whyGreen', dateFmt: 'yyyy/MM/dd'})"  />
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="Mail" class="control-label">{$Think.const.LB_MAIL}:</label></div>
                    <div class="col-xs-6 col-sm-3 div_text" >
                        <input type="text" id="Mail" name="Mail" class="form-control" placeholder="{$Think.const.LB_MAIL}"  value="" maxlength="50"/>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPType" class="control-label">{$Think.const.LB_VIPTYPE}:</label></div>
                    <div class="col-xs-6 col-sm-3" >
                        <select id="VIPType" name="VIPType" class="form-control" >
                            <option value="" style="display: none"></option>
                            <foreach name="GV_Enum.VIPType" item="row" key="k">
                                <option value="{$k}">{$k}-{$row}</option>
                            </foreach>
                        </select>
                    </div>
                    <div class="text-right col-xs-6 col-sm-3 " ><label for="VIPLevel" class="control-label">{$Think.const.LB_VIPLEVEL}:</label></div>
                    <div class="col-xs-6 col-sm-3" >
                        <select id="VIPLevel" name="VIPLevel" class="form-control" >
                            <option value="" style="display: none"></option>
                            <foreach name="GV_Enum.VIPLevel" item="row" key="k">
                                <option value="{$k}">{$k}-{$row}</option>
                            </foreach>
                        </select>
                    </div>



                    <div class="col-xs-6 col-sm-3">
                        <input type="submit" id="search"  class="btn btn-default" value="查询">
                    </div>

                </form>
                <div id="error" class="row text-danger"></div>
                <div id="success" class="row text-success"></div>
            </div>
            <hr />
            <div class="row div_content" >
                <div class="col-md-12">
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover table-condensed" id="dataTables" border="1">
                            <thead>
                                <tr>
                                    <th class="div_tab_head">序号</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPNO}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPLOGINCODE}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPNAME}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPNICKNAME}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPPHONENO}</th>

                                    <th class="div_tab_head">{$Think.const.LB_SEX}</th>

                                    <th class="div_tab_head">{$Think.const.LB_BIRTHDAY}</th>

                                    <th class="div_tab_head">{$Think.const.LB_MAIL}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPTYPE}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPLEVEL}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPFIGTHVALUE}</th>

                                    <th class="div_tab_head">{$Think.const.LB_VIPIMG}</th>

                                    <th class="div_tab_head">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <foreach name="lst" item="row" >
                                <tr>
                                    <td class="div_tab_cell">{$key+1}</td>
                                    <td class="div_tab_cell div_tab_cell_text">{$row.vipno|stripcslashes}</td>
                                    <td class="div_tab_cell div_tab_cell_text">{$row.viplogincode|stripcslashes}</td>
                                    <td class="div_tab_cell div_tab_cell_text">{$row.vipname|stripcslashes}</td>
                                    <td class="div_tab_cell div_tab_cell_text">{$row.vipnickname|stripcslashes}</td>
                                    <td class="div_tab_cell div_tab_cell_text">{$row.vipphoneno|stripcslashes}</td>

                                <assign name="var_sex" value="$row.sex" />
                                <td class="div_tab_cell div_tab_cell_text">{$GV_Enum.Sex.$var_sex|stripcslashes}</td>
                                <td class="div_tab_cell div_tab_cell_date">{$row.birthday}</td>
                                <td class="div_tab_cell div_tab_cell_text">{$row.mail|stripcslashes}</td>

                                <assign name="var_viptype" value="$row.viptype" />
                                <td class="div_tab_cell div_tab_cell_text">{$GV_Enum.VIPType.$var_viptype|stripcslashes}</td>

                                <assign name="var_viplevel" value="$row.viplevel" />
                                <td class="div_tab_cell div_tab_cell_text">{$GV_Enum.VIPLevel.$var_viplevel|stripcslashes}</td>
                                <td class="div_tab_cell div_tab_cell_num">{$row.vipfigthvalue|stripcslashes}</td>
                                <td class="div_tab_cell div_tab_cell_text">
                                    <img src="{$Think.const.FILE_ROOT}{$row.vipsimg|stripcslashes}" height="40" width="60">
                                </td>

                                <td align="center" class="div_tab_cell"><div class="btn-group">
                                        <a id="edit" type="button" class="btn btn-default" href="__CONTROLLER__/edit/VIPNo/{$row.vipno}"><span class="glyphicon glyphicon-pencil"></span></a>
                                        <a id="delete" type="button" class="btn btn-default"href="__CONTROLLER__/del/VIPNo/{$row.vipno}" onClick="if (confirm('确定要删除吗？'))
                                                    return true;
                                                else
                                                    return false;"><span class="glyphicon glyphicon-remove"></span></a>
                                    </div></td>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>